﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAL;
using System.Data;

namespace logic
{
    public class webNews
    {
        public static void insert(WebNewsEntity wn)
        {
            WebNews.insert(wn);
        }

        public static void update(WebNewsEntity wn)
        {
            WebNews.update(wn);
        }

        public static WebNewsEntity getById(int Id)
        {
            return WebNews.getById(Id);
        }
        public static DataSet select(string where, string orderby, int pagesize, int pageindex)
        {
            return DAL.DbHelper.ExecuteDataSetPageSize("*", "vw_WebNews_list", where, "id", orderby, pagesize, pageindex);
        }
        public static void delete(int Id)
        {
            WebNews.delete(Id);
        }
    }
}
